
<%if !current_user.activated?%>

<h1>Welcome to DamnIT.</h1>
<p>Before you can use DamnIT, we must confirm your email address.  An email 
was sent to <span class='highlight'><%=current_user.email%></span>.  Please click the link in that email.
</p>
<p>After you click the link, you will be returned here and presented with your Application Key.</p>
</p>
<h2>Example email</h2>
<p><img src='/images/activate_email.png'/></p>


<%elsif current_user.application_errors.length == 0%>
	<%= render :partial => 'home/errors'%>
	
	<h2>Tip!</h2>
	<p>Make sure you can recieve emails by sending a 
	<%=link_to 'test', :controller => 'home', :action => 'test'%> message.
	Read the  <%=link_to 'setup instructions', :controller => 'home',:action=> 'setup_instructions' %>
	to understand how to install DamnIT on your webpages.
	
	</p>
<%else%>
	<%= render :partial => 'home/errors'%>
	
	
<%end%>